package xyz.ddlnt.servicemg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import xyz.ddlnt.model.dto.ExamQuestionDTO;
import xyz.ddlnt.model.dto.PublishStatus;
import xyz.ddlnt.model.entity.ExamQuestion;
import xyz.ddlnt.model.vo.ExamQuestionInfoVO;
import xyz.ddlnt.model.vo.ExamQuestionVO;

import java.util.List;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/3 21:47
 */
public interface ExamQuestionService extends IService<ExamQuestion> {


    /**
     * 添加试题
     * @param examQuestionDTO
     * @return
     */
    ExamQuestionVO addExamQuestion(ExamQuestionDTO examQuestionDTO);

    /**
     * 删除试题
     * @param id
     * @return
     */
    Boolean deleteById(Long id);

    /**
     * 修改试题
     * @param examQuestionDTO
     * @return
     */
    ExamQuestionVO updateExamQuestion(ExamQuestionDTO examQuestionDTO);

    /**
     * 根据id查询试题
     * @param id
     * @return
     */
    ExamQuestionInfoVO getExamQuestionById(Long id);

    /**
     * 查询所有试题
     * @return
     */
    List<ExamQuestionVO> listExamQuestionVO();

    /**
     * 修改试题发布状态
     * @param publishStatus
     * @return
     */
    Boolean updatePublishStatus(PublishStatus publishStatus);
}
